
const mongoose = require('mongoose');

const seats = new mongoose.Schema({
    seatId: { type: "ObjectId", ref: "seats" },
    scheduleId: { type: "ObjectId", ref: "schedules" },
    // 当前排片的座位状态，1 为已售出， 0 为未售出
    status: {
        type: Number,
        default: 0
    }
});
mongoose.model("seatings", seats, "seatings");
